<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>银行审批系统</title>
    <meta name="description" content="这是一个 index 页面">
    <meta name="keywords" content="index">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <link rel="icon" type="image/png" href="../static/i/favicon.png" th:href="@{~/i/favicon.png}">
    <link rel="apple-touch-icon-precomposed" href="../static/i/app-icon72x72@2x.png" th:href="@{~/i/app-icon72x72@2x.png}">
    <meta name="apple-mobile-web-app-title" content="Amaze UI" />
    <script src="../static/js/echarts.min.js" type="text/javascript" th:src="@{~/js/echarts.min.js}"></script>
    <link rel="stylesheet" href="../static/css/amazeui.min.css" type="text/css" th:href="@{~/css/amazeui.min.css}" />
    <link rel="stylesheet" href="../static/css/amazeui.datatables.min.css" type="text/css" th:href="@{~/css/amazeui.datatables.min.css}" />
    <link rel="stylesheet" href="../static/css/app.css" type="text/css" th:href="@{~/css/app.css}">
    <script src="../static/js/jquery.min.js" type="text/javascript" th:src="@{~/js/jquery.min.js}"></script>
</head>

<body data-type="index">
    <script src="../static/js/theme.js" type="text/javascript" th:src="@{~/js/theme.js}"></script>
    <div class="am-g tpl-g">
        <!-- 头部 -->
        <header>
            <!-- logo -->
            <div class="am-fl tpl-header-logo" style="color: whitesmoke; line-height: 57px;">
                <h3 style="">后台管理系统</h3>
            </div>
            <!-- 右侧内容 -->
            <div class="tpl-header-fluid">
                <!-- 侧边切换 -->
                <div class="am-fl tpl-header-switch-button am-icon-list">
                    <span>

                </span>
                </div>
                <!-- 搜索 -->
                <div class="am-fl tpl-header-search">
                    <form class="tpl-header-search-form" action="javascript:;">
                        <button class="tpl-header-search-btn am-icon-search"></button>
                        <input class="tpl-header-search-box" type="text" placeholder="搜索内容...">
                    </form>
                </div>
                <!-- 其它功能-->
                <div class="am-fr tpl-header-navbar">
                    <ul>
                        <!-- 欢迎语 -->
                        <li class="am-text-sm tpl-header-navbar-welcome">
                            <a href="javascript:;">欢迎你, <span th:text="${session.admin.getUserName()}">admin</span> </a>
                        </li>

                        <!-- 退出 -->
                        <li class="am-text-sm">
                            <a href="index.html" th:href="@{/back/}">
                                <span class="am-icon-sign-out"></span> 退出
                            </a>
                        </li>
                    </ul>
                </div>
            </div>

        </header>
        <!-- 风格切换 -->
        <div class="tpl-skiner">
            <div class="tpl-skiner-toggle am-icon-cog">
            </div>
            <div class="tpl-skiner-content">
                <div class="tpl-skiner-content-title">
                    选择主题
                </div>
                <div class="tpl-skiner-content-bar">
                    <span class="skiner-color skiner-white" data-color="theme-white"></span>
                    <span class="skiner-color skiner-black" data-color="theme-black"></span>
                </div>
            </div>
        </div>
        <!-- 侧边导航栏 -->
        <div class="left-sidebar">
            <!-- 用户信息 -->
            <div class="tpl-sidebar-user-panel">
                <div class="tpl-user-panel-slide-toggleable">
                    <div class="tpl-user-panel-profile-picture">
                        <img src="../static/img/user04.png" alt="" th:src="@{~/img/user04.png}">
                    </div>
                    <span class="user-panel-logged-in-text">
              <i class="am-icon-circle-o am-text-success tpl-user-panel-status-icon"></i>
              <span th:text="${session.admin.getUserName()}">用户</span>
          </span>
                    <a href="javascript:;" class="tpl-user-panel-action-link"> <span class="am-icon-pencil"></span> 账号设置</a>
                </div>
            </div>

            <!-- 菜单 -->
            <ul class="sidebar-nav">
                <li class="sidebar-nav-link">
                    <a href="index.html" th:href="@{/back/index}">
                        <i class="am-icon-home sidebar-nav-link-logo"></i> 角色列表
                    </a>
                </li>
                <li class="sidebar-nav-link">
                    <a href="tables.html" class="active" th:href="@{/back/show}">
                        <i class="am-icon-table sidebar-nav-link-logo"></i> 客户列表
                    </a>
                </li>
            </ul>
        </div>


        <!-- 内容区域 -->
        <div class="tpl-content-wrapper">

            <div class="container-fluid am-cf">
                <div class="row">
                    <div class="am-u-sm-12 am-u-md-12 am-u-lg-9" style="width: 300px;">
                        <div class="page-header-heading"><span class="am-icon-home page-header-heading-icon"></span> 角色绑定 <small>Role Binding</small></div>
                        <p class="page-header-description">对未进行关系绑定的经理或职员进行绑定</p>
                    </div>
                    <div style="border: grey 1px solid;display: inline-block;width:400px;height: 50px;line-height: 50px;text-align: center;margin-left: 180px;">
                        <p style="color: whitesmoke;font-size: x-large" th:text="${session.role + ':' + session.username}">微信用户</p>
                    </div>
                </div>
            </div>

            <div class="row">

                <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
                    <div class="widget am-cf">
                        <div class="widget-body  widget-body-lg am-fr">

                            <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black " id="example-r">
                                <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>姓名</th>
                                    <th>角色</th>
                                    <th>操作</th>
                                </tr>
                                </thead>
                                <tbody>
                                <tr class="gradeX" th:each="user, state : ${users}">
                                    <td th:text="${state.index + 1}">1</td>
                                    <td th:text="${user.getUserName()}">张三</td>
                                    <td th:text="${user.getRole()}">业务员</td>
                                    <td>
                                        <div class="tpl-table-black-operation">
                                            <a th:href="@{/back/bind/{userId}(userId=${user.getUserId()})}">
                                                <span>绑定</span>
                                            </a>
                                        </div>
                                    </td>
                                </tr>

                                <!-- more data -->
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>


        </div>
    </div>
    </div>
    <script src="../static/js/amazeui.min.js" type="text/javascript" th:src="@{~/js/amazeui.min.js}"></script>
    <script src="../static/js/amazeui.datatables.min.js" type="text/javascript" th:src="@{~/js/amazeui.datatables.min.js}"></script>
    <script src="../static/js/dataTables.responsive.min.js" type="text/javascript" th:src="@{~/js/dataTables.responsive.min.js}"></script>
    <script src="../static/js/app.js" type="text/javascript" th:src="@{~/js/app.js}"></script>

</body>

</html>